import { defineStore } from 'pinia'
interface stateCount{
    count:number
}
const useCountStore = defineStore('count',{
    state:():stateCount=>{
        return{
            count:1
        };
    },
    actions: {
        AddOneTenth(){
            return this.count++
        },
        AddN(value:number){
            return this.count += value
        },
        AddOne(){
            setTimeout(()=>{
                this.count++
            },2000)
        }
    }, 
    getters: {}
})
export default useCountStore